﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             x:Class="MyImdb.Views.StartView"
             mc:Ignorable="d"
             d:DesignHeight="600"
             d:DesignWidth="800">
    <Grid>
        <WrapPanel Orientation="Horizontal">
            <GroupBox Header="Local IMDB Titles"
                      HorizontalAlignment="Left"
                      VerticalAlignment="Top"
                      Width="310"
                      Height="150">
                <Grid>
                    <TextBlock HorizontalAlignment="Center"
                               TextWrapping="Wrap"
                               Text="{Binding LocalTitlesCount}"
                               VerticalAlignment="Center"
                               FontSize="48" />
                </Grid>
            </GroupBox>
            <GroupBox Header="Movies"
                      HorizontalAlignment="Left"
                      VerticalAlignment="Top"
                      Width="150"
                      Height="150">
                <Grid>
                    <TextBlock HorizontalAlignment="Center"
                               TextWrapping="Wrap"
                               Text="{Binding MoviesCount}"
                               VerticalAlignment="Center"
                               FontSize="48" />
                </Grid>
            </GroupBox>
            <GroupBox Header="TV Series"
                      HorizontalAlignment="Left"
                      VerticalAlignment="Top"
                      Width="150"
                      Height="150">
                <Grid>
                    <TextBlock HorizontalAlignment="Center"
                               TextWrapping="Wrap"
                               Text="{Binding TVSeriesCount}"
                               VerticalAlignment="Center"
                               FontSize="48" />
                </Grid>
            </GroupBox>
            <GroupBox Header="Episodes"
                      HorizontalAlignment="Left"
                      VerticalAlignment="Top"
                      Width="310"
                      Height="150">
                <Grid>
                    <TextBlock HorizontalAlignment="Center"
                               TextWrapping="Wrap"
                               Text="{Binding EpisodesCount}"
                               VerticalAlignment="Center"
                               FontSize="48" />
                </Grid>
            </GroupBox>

            <GroupBox Header="Seasons"
                      HorizontalAlignment="Left"
                      VerticalAlignment="Top"
                      Width="310"
                      Height="150">
                <Grid>
                    <ListBox ItemsSource="{Binding SeasonTitles}">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding}"/>
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </Grid>
            </GroupBox>

        </WrapPanel>
    </Grid>
</UserControl>
